package com.woniu.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author jiang
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "支付宝请求参数")
public class AlipayBean {
    // 交易订单号
    @ApiModelProperty(value = "交易订单编号")
    private String out_trade_no;
    // 商家与支付报的产品码
    @ApiModelProperty(value = "商家与支付报的产品码")
    @Builder.Default
    private String product_code = "FAST_INSTANT_TRADE_PAY";
    /**
     * 付款金额，必填
     * 根据支付宝接口协议，必须使用下划线
     */
    @ApiModelProperty("付款金额")
    private double total_amount;

    @ApiModelProperty("订单标题")
    @Builder.Default
    private String subject = "膳食服务";

    @ApiModelProperty(value = "商品描述")
    @Builder.Default
    private String body = "订单支付";

    //超时时间参数
    @ApiModelProperty(value = "超时时间")
    private String time_expire;

//    @ApiModelProperty(value = "二维码")
//    @Builder.Default
//    private String qr_pay_mode = "2";
}
